import request from '@/utils/request'
//查询所有的组长
export function loadSuperiorsObjs() {
  return request({
    url: '/teacher/teacher/loadSuperiorsObjs',
    method: 'get',
  })
}

//查询校区
export function listCampus() {
  return request({
    url: '/teacher/campus',
    method: 'get',
  })
}

//查询学科
export function listSubjects() {
  return request({
    url: '/teacher/subject',
    method: 'get',
  })
}

//查询老师类型
export function listTeacherType() {
  return request({
    url: '/teacher/teacher/teacherTypeList',
    method: 'get',
  })
}

// 查询老师中心列表
export function listTeacher(query) {
  return request({
    url: '/teacher/teacher/list',
    method: 'get',
    params: query
  })
}

// 查询老师中心详细
export function getTeacher(id) {
  return request({
    url: '/teacher/teacher/' + id,
    method: 'get'
  })
}

// 新增老师中心
export function addTeacher(data) {
  return request({
    url: '/teacher/teacher',
    method: 'post',
    data: data
  })
}

// 修改老师中心
export function updateTeacher(data) {
  return request({
    url: '/teacher/teacher',
    method: 'put',
    data: data
  })
}

// 删除老师中心
export function delTeacher(id) {
  return request({
    url: '/teacher/teacher/' + id,
    method: 'delete'
  })
}
